package com.oracle.team.domain;

import com.oracle.team.service.Status;

public class Architect extends Designer {
	private int stock;

	public Architect(int id, String name, int age, double salary, int memberId, Status status, Equipment equipment,
			double bonus, int stock) {
		super(id, name, age, salary, memberId, status, equipment, bonus);
		this.stock = stock;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}
	
	//覆盖重写方法-团队列表
	public String getListDetails() {
		return getDetails() +"\t" +"架构师" +"\t" + Status.FREE + "\t" + getBonus() + "\t" + stock + "\t" + getEquipment().getDescription();
	}
	
	//覆盖重写方法-团队列表
	public String getTeamDetails() {
		return getMemberId() + "/" + getDetails() + "\t架构师" + "\t" + getBonus() + "\t" + stock;		
	}

}
